<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <!-- vue js库-->
    <script src="./vue.js"></script>
</head>
<body>

<div id="app-4">
    <ol>
        <li v-for="data in todos">
            {{ data.text }}
        </li>
    </ol>
</div>


<script>


/*数组取值循环遍历*/
    var app4 = new Vue({
        el: '#app-4',
        data: {
            todos: [
                { text: '学习 JavaScript' },
                { text: '学习 Vue' },
                { text: '整个牛项目' }
            ]
        }
    })
</script>
</body>
</html>